package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 联系人 
 * @Author  yanluping@outlook.com
 * @Date 2020-07-20 10:25:08 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "联系人")
@Table ( name ="Contact")
public class Contact  implements Serializable {

	private static final long serialVersionUID =  3254163946091440526L;

	/**
	 * 联系人名单
	 */
	@ApiModelProperty(value = "联系人名单")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Contact_Id" )
	private Long contactId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 姓名
	 */
	@ApiModelProperty(value = "姓名")
   	@Column(name = "Name" )
	private String name;

	/**
	 * 性别
	 */
	@ApiModelProperty(value = "性别")
   	@Column(name = "Sex" )
	private String sex;

	/**
	 * 公司
	 */
	@ApiModelProperty(value = "公司")
   	@Column(name = "Company" )
	private String company;

	/**
	 * 职务
	 */
	@ApiModelProperty(value = "职务")
   	@Column(name = "Position" )
	private String position;

	/**
	 * 手机
	 */
	@ApiModelProperty(value = "手机")
   	@Column(name = "Phone" )
	private String phone;

	/**
	 * 邮箱
	 */
	@ApiModelProperty(value = "邮箱")
   	@Column(name = "Email" )
	private String email;

	/**
	 * 地区
	 */
	@ApiModelProperty(value = "地区")
   	@Column(name = "Area" )
	private String area;

	/**
	 * 地址
	 */
	@ApiModelProperty(value = "地址")
   	@Column(name = "Address" )
	private String address;

	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
   	@Column(name = "Avatar" )
	private String avatar;

	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
   	@Column(name = "Remark" )
	private String remark;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建日期",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getContactId() {
		return this.contactId;
	}

	public void setContactId(Long contactId) {
		this.contactId = contactId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getPosition() {
		return this.position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAvatar() {
		return this.avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "{" +
					"contactId='" + contactId + '\'' +
					"projectId='" + projectId + '\'' +
					"name='" + name + '\'' +
					"sex='" + sex + '\'' +
					"company='" + company + '\'' +
					"position='" + position + '\'' +
					"phone='" + phone + '\'' +
					"email='" + email + '\'' +
					"area='" + area + '\'' +
					"address='" + address + '\'' +
					"avatar='" + avatar + '\'' +
					"remark='" + remark + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
